package com.example.demo.mapper;

import com.example.demo.entity.LendRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface LendRecordMapper {
    int insert(LendRecord lendRecord);
    int updateByIsbn(@Param("isbn") String isbn, @Param("record") LendRecord lendRecord);
    int updateByCondition(LendRecord lendRecord);
    int deleteByIsbn(@Param("isbn") String isbn);
    int deleteByCondition(LendRecord lendRecord);
    List<LendRecord> selectPage(@Param("offset") int offset, @Param("pageSize") int pageSize,
                                @Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
    int selectCount(@Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
    Long selectTotalCount();
}
